﻿<Window x:Class="Songhay.Wpf.WordWalkingStick.Views.ClientView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:m="clr-namespace:Songhay.Wpf.WordWalkingStick.ViewModels"
    Cursor="Hand"
    Width="640" Height="420"
    Title="WordWalkingStick"
    WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow">
    <Window.Resources>
        <m:ClientViewModel x:Key="ClientViewModelDataSource" d:IsDataSource="True" />
    </Window.Resources>
    <DockPanel
        DataContext="{StaticResource ClientViewModelDataSource}">
        <Menu Width="632" VerticalAlignment="Top" DockPanel.Dock="Top">
            <MenuItem Header="File">
                <MenuItem x:Name="MenuItemClose" Header="Close" />
            </MenuItem>
            <MenuItem Header="XHTML">
                <MenuItem Header="Copy Body to Clipboard"
                    Command="{Binding ClientCommand}"
                    CommandParameter="CopyBody"/>
            </MenuItem>
        </Menu>
        <TabControl
            HorizontalAlignment="Stretch"
            TabStripPlacement="Bottom" Width="632" d:LayoutOverrides="Height" DockPanel.Dock="Bottom">
            <TabItem Header="XHTML Result">
                <TextBox
                    FontFamily="Courier New"
                    FontSize="14"
                    HorizontalScrollBarVisibility="Auto"
                    Text="{Binding XhtmlSourceString}"
                    VerticalScrollBarVisibility="Auto"
                />
            </TabItem>
            <TabItem Header="Flat OPC Result">
                <TextBox
                    FontFamily="Courier New"
                    FontSize="14"
                    HorizontalScrollBarVisibility="Auto"
                    Text="{Binding FlatOpcSourceString}"
                    VerticalScrollBarVisibility="Auto"
                />
            </TabItem>
        </TabControl>
    </DockPanel>
</Window>
